﻿<UserControl xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:fxui="clr-namespace:SilverlightFX.UserInterface;assembly=SilverlightFX"
    xmlns:local="clr-namespace:AphroditePiano" xmlns:AphroditePiano_Controls="clr-namespace:AphroditePiano.Controls" x:Class="AphroditePiano.MainPage" 
    Width="1000" Height="600" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
	<UserControl.Resources>
		
	</UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="#FF000000">
<AphroditePiano_Controls:ScreenMoonLight d:IsLocked="True" d:IsHidden="True" />
    

    	<AphroditePiano_Controls:SoundManager Height="100" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" x:Name="soundManager" d:IsLocked="True"/>
    	<Grid Margin="0,0,0,0" Width="968" Height="321" VerticalAlignment="Bottom" HorizontalAlignment="Center" d:IsLocked="True">
    		<Border Margin="0,0,0,0" Background="#4C000000" CornerRadius="5,5,0,0" BorderThickness="2,2,1,0" BorderBrush="#FF626262" Height="160" d:LayoutOverrides="Height" HorizontalAlignment="Center" VerticalAlignment="Top" Width="930">
    			<Grid Height="Auto" Width="Auto">
    				<local:KeyBoard Margin="-52,-9.7,0,0" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" VerticalAlignment="Top" d:LayoutOverrides="Height">
    					<local:KeyBoard.RenderTransform>
    						<TransformGroup>
    							<ScaleTransform ScaleX="0.7" ScaleY="0.7"/>
    							<SkewTransform/>
    							<RotateTransform/>
    							<TranslateTransform/>
    						</TransformGroup>
    					</local:KeyBoard.RenderTransform>
    				</local:KeyBoard>
    				<Border HorizontalAlignment="Right" Margin="0,18,63,0" Width="308" BorderThickness="3,3,3,3" CornerRadius="3,3,3,3" BorderBrush="#4C474747" Height="108" VerticalAlignment="Top">
    					<data:DataGrid Height="Auto" x:Name="xDataGrid" Width="Auto" CanUserReorderColumns="False" IsReadOnly="True" AutoGenerateColumns="False" BorderThickness="2,2,2,2" >
                            <fxui:Interaction.Behaviors>
                                <fxui:MouseWheelScroll />
                            </fxui:Interaction.Behaviors>
                            <data:DataGrid.BorderBrush>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    								<GradientStop Color="#4CFFFFFF" Offset="0"/>
    								<GradientStop Color="#4CFFFFFF" Offset="1"/>
    							</LinearGradientBrush>
    						</data:DataGrid.BorderBrush>
    						<data:DataGrid.Columns>
    							<data:DataGridTextColumn Header="Music" Binding="{Binding Path=Title}"/>
    							<data:DataGridTextColumn Header="Level" Binding="{Binding Path=Level}"/>
    						</data:DataGrid.Columns>
    					</data:DataGrid>
    				</Border>
    				<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="53.4818" Height="60.1921" Clip="F1 M 0,0L 53.4818,0L 53.4818,60.1921L 0,60.1921L 0,0" Margin="0,18.038,9.904,0" HorizontalAlignment="Right" RenderTransformOrigin="0.5,0.5" x:Name="BtnPlay" VerticalAlignment="Top" Cursor="Hand">
    					<Canvas.RenderTransform>
    						<TransformGroup>
    							<ScaleTransform ScaleX="0.6" ScaleY="0.6"/>
    							<SkewTransform/>
    							<RotateTransform/>
    							<TranslateTransform/>
    						</TransformGroup>
    					</Canvas.RenderTransform>
    					<Path Width="53.4818" Height="60.1921" Canvas.Left="0" Canvas.Top="1.12901e-005" Stretch="Fill" Data="F1 M 50.496,24.9075L 9.0156,0.810547C 7.16014,-0.265686 4.86589,-0.270935 3.00775,0.7995C 1.14974,1.86774 0,3.85419 0,5.99805L 0,54.1921C 0,56.3359 1.14974,58.3223 3.00775,59.3932C 3.93429,59.9258 4.96867,60.1921 6.00254,60.1921C 7.0436,60.1921 8.08333,59.9225 9.01294,59.3822L 13.0183,57.0554L 50.496,35.2825C 52.3483,34.2063 53.4818,32.2395 53.4818,30.0952C 53.4818,27.9506 52.3516,25.9838 50.496,24.9075 Z " Opacity="0.7">
    						<Path.Fill>
    							<LinearGradientBrush StartPoint="0.0543539,0.0142446" EndPoint="0.976391,0.0142446">
    								<LinearGradientBrush.RelativeTransform>
    									<TransformGroup>
    										<SkewTransform CenterX="0.0543539" CenterY="0.0142446" AngleX="-5.85815" AngleY="0"/>
    										<RotateTransform CenterX="0.0543539" CenterY="0.0142446" Angle="56.9846"/>
    									</TransformGroup>
    								</LinearGradientBrush.RelativeTransform>
    								<GradientStop Color="#FF696969" Offset="0.115385"/>
    								<GradientStop Color="#FF3F3F3F" Offset="0.598901"/>
    								<GradientStop Color="#FF151515" Offset="1"/>
    							</LinearGradientBrush>
    						</Path.Fill>
    					</Path>
    					<Path Width="41.4812" Height="48.1941" Canvas.Left="6.00187" Canvas.Top="5.99933" Stretch="Fill" Fill="#FF000000" Data="F1 M 6.00187,5.99933L 6.00187,54.1934L 10.0078,51.8678L 47.4831,30.0964L 6.00187,5.99933 Z " Opacity="0.8"/>
    					<Path Width="33.504" Height="38.9309" Canvas.Left="8.66921" Canvas.Top="10.6315" Stretch="Fill" Fill="#FFC2C2B0" Data="F1 M 8.66921,49.5624L 8.66921,10.6315L 42.1732,30.097L 8.66921,49.5624 Z " Opacity="0.8"/>
    					<Path Width="28.6407" Height="17.2168" Canvas.Left="8.66921" Canvas.Top="10.6315" Stretch="Fill" Fill="#FFFFFFFF" Data="F1 M 8.66921,27.6062C 12.4739,27.7819 16.3873,27.8483 20.3189,27.8483C 26.1211,27.8483 31.8821,27.7018 37.3099,27.2715L 8.66921,10.6315L 8.66921,27.6062 Z " Opacity="0.8"/>
    				</Canvas>
    				<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="50.2773" Height="50.2767" Clip="F1 M 0,0L 50.2773,0L 50.2773,50.2767L 0,50.2767L 0,0" HorizontalAlignment="Right" Margin="0,76.055,11.945,31.945" x:Name="BtnStop" RenderTransformOrigin="0.5,0.5" Cursor="Hand">
    					<Canvas.RenderTransform>
    						<TransformGroup>
    							<ScaleTransform ScaleX="0.6" ScaleY="0.6"/>
    							<SkewTransform/>
    							<RotateTransform/>
    							<TranslateTransform/>
    						</TransformGroup>
    					</Canvas.RenderTransform>
    					<Path Width="50.2773" Height="50.2766" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Data="F1 M 48.5182,1.75919C 47.401,0.642639 45.8555,0 44.2747,0L 6,0C 4.42053,0 2.87491,0.639954 1.7565,1.75919C 0.640533,2.87573 0,4.42114 0,6.00259L 0,44.2773C 0,45.8561 0.640533,47.4017 1.75906,48.5208C 2.87491,49.6367 4.42053,50.2766 6,50.2766L 44.2747,50.2766C 45.8555,50.2766 47.401,49.6367 48.5182,48.5208C 49.6341,47.4017 50.2773,45.8561 50.2773,44.2773L 50.2773,41.6094L 50.2773,6.00259C 50.2773,4.42114 49.6341,2.87573 48.5182,1.75919 Z " Opacity="0.7">
    						<Path.Fill>
    							<LinearGradientBrush StartPoint="0.180354,-0.0536212" EndPoint="0.819621,1.05363">
    								<GradientStop Color="#FF696969" Offset="0.115385"/>
    								<GradientStop Color="#FF3F3F3F" Offset="0.598901"/>
    								<GradientStop Color="#FF151515" Offset="1"/>
    							</LinearGradientBrush>
    						</Path.Fill>
    					</Path>
    					<Path Width="38.2747" Height="38.2753" Canvas.Left="6.00134" Canvas.Top="6.00195" Stretch="Fill" Fill="#FF000000" Data="F1 M 6.00134,6.00195L 6.00134,44.2773L 44.276,44.2773L 44.276,41.6088L 44.276,6.00195L 6.00134,6.00195 Z " Opacity="0.8"/>
    					<Rectangle Width="32.9402" Height="32.9414" Canvas.Left="8.66919" Canvas.Top="8.66861" Stretch="Fill" Fill="#FFC2C2B0" Opacity="0.8"/>
    					<Path Width="32.9402" Height="14.222" Canvas.Left="8.66919" Canvas.Top="8.66861" Stretch="Fill" Fill="#FFFFFFFF" Data="F1 M 8.66919,22.3821C 13.8437,22.7617 19.3047,22.8906 24.8008,22.8906C 30.5377,22.8906 36.2344,22.7474 41.6093,22.3281L 41.6093,8.66861L 8.66919,8.66861L 8.66919,22.3821 Z " Opacity="0.8"/>
    				</Canvas>

    				<StackPanel Height="Auto" Margin="358,22,392,0" VerticalAlignment="Top">
    					<TextBlock Foreground="#FFFFFFFF" Text="音量大小" TextWrapping="Wrap"/>
    					<Slider Width="177" BorderThickness="1,1,1,1" SmallChange="0.1" Value="0.5" Style="{StaticResource MusicSlider}" LargeChange="0.1" Maximum="1" Minimum="0" x:Name="SoundVolumeSlider"/>
    				</StackPanel>
    				<StackPanel Height="Auto" Margin="358,76.055,392,47.945" d:LayoutOverrides="Height">
    					<TextBlock Foreground="#FFFFFFFF" Text="播放速度" TextWrapping="Wrap"/>
    					<Slider Width="177" SmallChange="1" Value="0" Style="{StaticResource MusicSlider}" IsDirectionReversed="False" LargeChange="0.1" Maximum="0.3" Minimum="-0.3" x:Name="PlaySpeedSlider"/>
    				</StackPanel>

    			</Grid>
    		</Border>
    		<local:PianoBoard HorizontalAlignment="Center" VerticalAlignment="Bottom" Width="968" Height="178"/>
    		<Image HorizontalAlignment="Right" Margin="0,157,21,8" Width="254" Source="Resources/ScreenSelect.png" Stretch="None"/></Grid>
    	<Grid Height="240" Margin="33,0,0,0" VerticalAlignment="Top" Width="500" HorizontalAlignment="Left">
    		<Border Background="#4C000000" BorderBrush="#FF626262" BorderThickness="2,0,1,1" CornerRadius="0,0,5,5">
    			<Grid>
    				<Grid Height="Auto" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top" Width="Auto">
    					<Border Padding="3,3,3,3" BorderBrush="#CC000000" CornerRadius="3,3,3,3" BorderThickness="3,3,3,3">
    						<Border.Background>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    								<GradientStop Color="#CC000000"/>
    								<GradientStop Color="#CC0E0E0E" Offset="1"/>
    							</LinearGradientBrush>
    						</Border.Background>
    						<TextBlock FontSize="12" Foreground="#FFFFFFFF" Text="" TextWrapping="Wrap" d:LayoutOverrides="Width, Height" x:Name="txtMusicTitle"/>
    					</Border>
    				</Grid>
    				<ScrollViewer Margin="8,46,8,46" Style="{StaticResource MusicScrollViewer}" x:Name="xScrollViewer">
                        <fxui:Interaction.Behaviors>
                            <fxui:MouseWheelScroll />
                        </fxui:Interaction.Behaviors>
                        <TextBlock Height="Auto" Width="Auto" Foreground="#FFFFFFFF" Text="" TextWrapping="Wrap" x:Name="txtLyric" VerticalAlignment="Top" HorizontalAlignment="Left" IsHitTestVisible="False"/>
    				</ScrollViewer>
    				<local:Indication HorizontalAlignment="Left" VerticalAlignment="Bottom" d:LayoutOverrides="Height" Margin="0,0,0,5" x:Name="xIndication"/>
    			</Grid>
    		</Border>
    	</Grid>
    </Grid>
</UserControl>
